home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
cnet_toolkit.lha
/
routines
/
BMTXT
< prev
next >
Wrap
Text File
|
1997-04-05
|
524b
|
9 lines
BMTXT: procedure expose bmt.;b=ARG(1)*2;dt=datatype(ARG(2),"N");getuser 2401064
t=import(x2c(d2x(result,8)),220);parse var t 13 p +4 =b+21 s +2 =b+121 l +2
if ARG()=2&ARG(2)<=c2d(l)&dt then do;m=import(import(offset(p,4*(c2d(s)+ARG(2))),4),512)
parse var m t"00"x;return translate(t,"\{","");end;c=0
do a=c2d(s) to (c2d(s)+c2d(l)-1);m=import(import(offset(p,4*a),4),512)
parse var m t"00"x;bmt.c=translate(t,"\{","")
if ~dt & index(upper(bmt.c),upper(ARG(2)))~=0 then return 1
c=c+1;end;return c-1